{if $flag == 2}
    {if $direct}
        {$direct}
    {else}
        {if $tag == 0}
            <a href="/tenders/banerRedirect?link={$link}"><img src="{$baner}"/></a>
        {else}
            <a href="/tenders/banerRedirect?link={$link}">
            <object width="195" height="500">
                <param name="banerhoriz" value="{$baner}">
                <embed src="{$baner}" width="195" height="500">
                </embed>
            </object>
            </a>
        {/if}
    {/if}
    <br/><br/>
{else}
    {if $direct}
        {$direct}
    {else}
        {if $direct1}
            {$direct1}
        {else}
            {if $tag1 == 0}
                <a href="/tenders/banerRedirect?link={$link1}">
                    <img src="{$baner1}"/>
                </a>
            {else}
                <object width="195" height="235">
                    <param name="banerhoriz1" value="{$baner1}">
                    <embed src="{$baner1}" width="195" height="235">
                    </embed>
                </object>
            {/if}<br/><br/>
        {/if}
        {if $direct2}
            {$direct2}
        {else}
            {if $tag2 == 0}
                <a href="/tenders/banerRedirect?link={$link2}"><img src="{$baner2}"/></a>
            {else}
            <a href="/tenders/banerRedirect?link={$link}">
                <object width="195" height="235">
                    <param name="banerhoriz2" value="{$baner2}">
                    <embed src="{$baner2}" width="195" height="235">
                    </embed>
               </object>
            </a>
            {/if}
        {/if}
    {/if}
{/if}